home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / bbsutil / gapdemo1.zip / EXTSH.BAT < prev    next >
DOS Batch File  |  1993-04-26  |  860b  |  39 lines

  1. @echo off
  2.  
  3. REM     This is a sample batch file that can be used for HS-LINK
  4. REM     to download and send files at the same time.
  5.  
  6. REM     First delete any DSZLOG files
  7.  
  8. del dszlog
  9.  
  10. REM     Next delete any FILELST.TXT files created by READBTCH.EXE
  11.  
  12. del filelst.txt
  13.  
  14. REM     Next, run READBTCH.EXE to create an indirection file for
  15. REM     HS-Link
  16.  
  17. readbtch
  18.  
  19. REM     %5 is the upload directory path
  20. REM     %6 is a 0 or 1 flag where 0 means uploads are allowed
  21. REM        and 1 means they are not
  22.  
  23. REM     following line deletes any files in the upload work directory
  24.  
  25. echo Y | del %5
  26.  
  27. if "%6" == "0" goto UPOK
  28.  
  29. REM     Disable Uploads while downloading, since an Event is pending
  30. REM     or the caller doesn't have upload security
  31.  
  32. HSLINK -P%1 -E%2 -NU @filelst.txt
  33. goto END
  34.  
  35. :UPOK
  36. HSLINK -P%1 -E%2 -U%5 @filelst.txt
  37.  
  38. :END
  39.